package org.apache.harmony.javax.security.auth.login;

import java.util.Collections;
import java.util.Map;

public class AppConfigurationEntry
{
  private final Map<String, ?> options;
  private final LoginModuleControlFlag controlFlag;
  private final String loginModuleName;

  public AppConfigurationEntry(String paramString, LoginModuleControlFlag paramLoginModuleControlFlag, Map<String, ?> paramMap)
  {
    if ((paramString == null) || (paramString.length() == 0))
      throw new IllegalArgumentException("auth.26");
    if (paramLoginModuleControlFlag == null)
      throw new IllegalArgumentException("auth.27");
    if (paramMap == null)
      throw new IllegalArgumentException("auth.1A");
    this.loginModuleName = paramString;
    this.controlFlag = paramLoginModuleControlFlag;
    this.options = Collections.unmodifiableMap(paramMap);
  }

  public String getLoginModuleName()
  {
    return this.loginModuleName;
  }

  public LoginModuleControlFlag getControlFlag()
  {
    return this.controlFlag;
  }

  public Map<String, ?> getOptions()
  {
    return this.options;
  }

  public static class LoginModuleControlFlag
  {
    private final String flag;
    public static final LoginModuleControlFlag REQUIRED = new LoginModuleControlFlag("LoginModuleControlFlag: required");
    public static final LoginModuleControlFlag REQUISITE = new LoginModuleControlFlag("LoginModuleControlFlag: requisite");
    public static final LoginModuleControlFlag OPTIONAL = new LoginModuleControlFlag("LoginModuleControlFlag: optional");
    public static final LoginModuleControlFlag SUFFICIENT = new LoginModuleControlFlag("LoginModuleControlFlag: sufficient");

    private LoginModuleControlFlag(String paramString)
    {
      this.flag = paramString;
    }

    public String toString()
    {
      return this.flag;
    }
  }
}

/* Location:           D:\hygieia\userclient\common\libs\easemobchat_2.1.8.jar
 * Qualified Name:     org.apache.harmony.javax.security.auth.login.AppConfigurationEntry
 * JD-Core Version:    0.6.1
 */